import request from '../utils/request';


export const list = (data) => { 
    return request({
        url: '/admin/user/v1/list',
        method: 'post',
        data:data
    });
}
export const Enable = (data) => { 
    return request({
        url: "/admin/user/v1/enable",
        method: "post",
        data
    })
}
export const cash = (data) => { 
    // /admin/user/v1/cash
    return request({
        url: "/admin/user/v1/cash",
        method: "post",
        data
    })
}
export const edit = (data) => { 
    return request({
        url: "/admin/user/v1/edit",
        method: "post",
        data
    })
}
export const download = (data) => { 
    return request({
        url: "/admin/file/v1/download",
        params: data,
        method: "get",
        responseType: "blob",
    })
}
export const orderreject = (data) => {
    return request({
        url: '/admin/release_order/v1/order-reject',
        method: 'post',
        data:data
    });
}
// /admin/release_order/v1/order-confirm
export const orderconfirm = (data) => {
    return request({
        url: '/admin/release_order/v1/order-confirm',
        method: 'post',
        data:data
    });
}
// /admin/release_order/v1/take-down-check
export const takeDownCheck = (data) => { 
    return request({
        url: '/admin/release_order/v1/take-down-check',
        method: 'post',
        params:data
    });
}
// take-down-confirm
export const takedownconfirm=(data)=>{
    return request({
        url: '/admin/release_order/v1/take-down-confirm',
        method: 'post',
        params:data
    });
}